package com.lin.dao;

import com.github.pagehelper.Page;
import com.lin.domain.*;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

public interface PsHouseDao {
    List<SysOrg> getSysOrgList();

    /**
     * 通过证件查询房屋信息.
     * @param papersCode
     * @return
     */
    List<HouseDoor> getHouseByPapersCode(String papersCode);

    /**
     * 通过houseId获取房屋详细信息.
     * @param houseId
     * @return
     */
    HouseDoorInfo getHouseInfoByHouseId(String houseId);


    /**
     * 通过房屋id获取维修列表.
     * @param houseId
     * @return
     */
    List<HouseRepairLog> getHouseRepairLogListByHouseId(Long houseId);


    /**
     * -维修项目下拉选
     * @return
     */
    List<ProjectInfo> getProjectList();

    Long saveRepairUser(HashMap<String,Object> map);



    void updateHouseDoor(@Param("tel")String tel, @Param("houseId")String houseId);



    /**
     * 通过证件查询房屋信息.
     * @return
     */
    Page<HouseDoor> getHouseByPapersCodePage(@Param("papersCode") String papersCode,@Param("invoiceNo") String invoiceNo);




    Page<HouseRepairLog> getHouseRepairLogListPageByHouseId(@Param("houseId") String houseId);

}
